package com.biqee.dao.impl;

import com.biqee.dao.BqUserLoginNameDAO;
import com.biqee.dao.base.BaseDAOImpl;
import com.biqee.model.db.BqUserLoginName;

public class BqUserLoginNameDAOImpl extends BaseDAOImpl implements BqUserLoginNameDAO {
	@Override
	public Long create(BqUserLoginName bqUserLoginName) {
		return (Long)getSqlMapClientTemplate().insert(getRealSqlId("create"), bqUserLoginName);
	}

	@Override
	public BqUserLoginName readByLoginName(String loginName) {
		return (BqUserLoginName)getSqlMapClientTemplate().queryForObject(getRealSqlId("readByLoginName"), loginName);
	}
	
}
